<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/22
 * Time: 13:19
 */
namespace phpfuntions\mp_options;
//PHP配置类 函数　

class myphp_options_set
{

    /**
     * assert_options 函数：设置或者获取不同的声明标记
     * @access public
     * @return
     */
    public static function assert_options ($what, $value = null) {
        return assert_options($what, $value  );

    }

    /**
     * ini_alter 函数：设置PHP配置选项的值
     * @access public
     * @return
     */
    public static function ini_alter ($varname, $newvalue) {
        return ini_alter($varname, $newvalue );

    }

    /**
     * ini_restore 函数：恢复配置选项的值
     * @access public
     * @return
     */
    public static function ini_restore ($varname) {
        return ini_restore($varname );

    }

    /**
     * ini_set 函数：设置PHP配置选项的值　
     * @access public
     * @return
     */
    public static function ini_set ($varname, $newvalue) {
        return ini_set( $varname, $newvalue);

    }

    /**
     * putenv 函数：设置环境变量
     * @access public
     * @return
     */
    public static function putenv ($setting) {
        return putenv($setting );

    }

    /**
     * restore_include_path 函数：恢复文件包含路径配置信息　
     * @access public
     * @return
     */
    public static function restore_include_path () {
        return restore_include_path( );

    }

    /**
     * set_include_path 函数：设置文件包含路径配置选项　
     * @access public
     * @return
     */
    public static function set_include_path ($new_include_path) {
        return set_include_path( $new_include_path);

    }



    /**
     * set_time_limit 函数：设置最大执行时间
     * @access public
     * @return
     */
    public static function set_time_limit ($seconds) {
        return set_time_limit($seconds );

    }
}